<?php
/*
 *
 * BEGIN main.php
 *
 *
 * Dazzler - main template for site
 * @Description: default main screen for web. This is the core site layout
 * @Authors: Salman Noor, Wits University
 * @Copyright: © Wits University 2011 - All Rights Reserved
 * @License: BSD License (http://www.linfo.org/bsdlicense.html)
 *
 *
 * BEGIN CHANGELOG
 * Developers working on thee files are REQUIRED to maintain this CHANGELOG.
 * Please ensure you follow the Changelog Guidelines: http://code.google.com/p/dazzler/wiki/DazzlerDevelopGuideline?ts=1315476570&updated=DazzlerDevelopGuideline
 * !==================================================================================================================================================================
 *
 * VERSION 1.0.0
 * 	+ Created, Salman, 7 September 2011
 * 	+ Added neater comment blocks, Salman, 8 September 2011
 *       + Added new template for new stylesheet
 *
 * ==================================================================================================================================================================!
 * END CHANGELOG
 */


/* * *****************************************************************************************************************************************************************
 *
 * BEGIN Direct Call Check
 *
  /***************************************************************************************************************************************************************** */
global $doNotCallThisScriptDirectly;
if ($doNotCallThisScriptDirectly != 1) {
    /* Read the ini language file */
    $ini_lang_array = array();
    $clientlang = explode(",", strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']));
    $lang_ini_array = (file_exists("lang/" . trim($clientlang[0]) . ".ini")) ? parse_ini_file("lang/" . trim($clientlang[0]) . ".ini", true) : parse_ini_file("lang/en.ini", true);
    die($lang_ini_array['ERRORS']['doNotCallThisScriptDirectly']);
}
/* * *****************************************************************************************************************************************************************
 *
 * END Direct Call Check
 *
  /***************************************************************************************************************************************************************** */
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <link rel="icon"
      type="image/png"
      href=<?php echo "$rootpath/themes/$loadType/global/images/favicon.png" ?> />
        <title>Dazzler - Live Cricket Scores</title>
        
<?php
echo $css_head;
echo $js_head;
	

?>
<!--        <script src="http://cdn.jquerytools.org/1.2.6/full/jquery.tools.min.js"></script>-->
    </head>

    <body>
        <div id="mask"></div>
        <div id="modalWindow">
<?php
echo $modalWindowContent;
?>
        </div>
        <div id="informationBar">

            <div id="informationMessageWindow" class=""></div>
        </div>
        <div id="navstrap">
            <div id="navcontainer">
                <div id="sblogo"><a href="/dazzler"><img src=<?php echo "$headerLogo" ?> width='212' alt="Dazzlr.co.za" title="Dazzlr.co.za" border="0" /></a></div>
                <div id="navspace">
                    <div id="navitems">
<?php
echo $topNavContent;
?>
                    </div>
                </div>
                <div id="righttopnav"></div>
            </div>
        </div>
        <div class="clear"></div>
        <div id="bodycontainer">
            <div id="leftcolumn">
<?php
echo $sideNavContent;
?>

                <!--	<div class='lnitem'><a href='#' class='signIn'> &raquo; Sign In / Register</a></div>
	<div class='signInWindow'>
		<div id='sauth_quickdate_c25e3' class='sauthNoStyle sauthNoVia'></div>
	</div>
	<div class='lnitem'><a href='/why' class='signIn'> &raquo; Why Join QuickDate.co.za?</a></div>-->
            </div>

            <div id="centercolumn">

                <div id="content">
<?php
echo $centerColumnContent;
?>
                </div>
            </div>
            <div id="rightcolumn">

                <div id='quickSearchBlock'>
                    <h2>Featured Live Game</h2>
        <!--		<div><span>I'm a </span><span class='toggleSwitch'><span>WOMAN</span><span>MAN</span></span> looking for </div>
		<div><span class='toggleSwitch'><span>MEN</span><span>WOMEN</span></span> between ages</div>

		<div><span><input type='text' id='seeking_from_age' value='18' /></span> and <span><input type='text' id='seeking_to_age' value='30' /></span> situated close to</div>
		<div><span><input type='text' class='geo_city' /></span></div>
		<div><span><input type='button' class='seeking_button' value='GO' /></span></div>-->
                </div>
            </div>
        </div>
        <div id="footerstrap">

            <div id="footercontainer">
                <div id="footerspace">
					home | about | contact | <a href="/dazzler/terms">terms of use</a> | <a href="/dazzler/privacy">privacy policy</a><br />copyright &copy; Dazzler.co.za 2011. All rights reserved.
                </div>

            </div>
        </div>
    </body>

</html>